/* critical.css - 关键渲染路径样式 */
/* 基础样式 */
:root {
    --primary-color: #0366d6;
    --secondary-color: #f8f9fa;
    --border-color: #e1e4e8;
    --text-color: #24292e;
    --navbar-bg: #24292e;
    --navbar-text: #ffffff;
    --navbar-hover: #58a6ff;
    --footer-bg: #f6f8fa;
    --footer-text: #586069;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f8f9fa;
}

body {
    display: flex;
    flex-direction: column;
}

.content-wrapper {
    flex: 1 0 auto;
    width: 100%;
}

/* 导航栏 - 关键部分 */
.navbar {
    background-color: var(--navbar-bg);
    color: var(--navbar-text);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 64px;
}

.navbar-brand {
    font-size: 1.5em;
    font-weight: bold;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
}

/* 容器 */
.container {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 基本排版 */
h1, h2, h3 {
    margin-bottom: 0.5em;
    font-weight: 600;
}

h1 {
    font-size: 2.5rem;
}

/* Wiki页面标题区域 - 首屏内容 */
.wiki-header {
    text-align: center;
    padding: 40px 20px;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #0099f7, #2196f3);
    border-radius: 12px;
    color: white;
}

.wiki-header h1 {
    font-size: 2.8em;
    margin-bottom: 16px;
    font-weight: 700;
}

.wiki-header p {
    font-size: 1.3em;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .container {
        width: 90%;
        padding: 15px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .wiki-header {
        padding: 30px 15px;
    }
    
    .wiki-header h1 {
        font-size: 2.2em;
    }
} 